Bus disturbance regulator

ABSTRACT

Presented is a harmonic regulator that regulates a plurality of individual harmonics in a system having periodic torque disturbances to commanded values, including zero. For each harmonic being regulated, a feedback signal having at least one harmonic component due to the harmonic being regulated is transformed from a source reference frame to a harmonic reference frame of the harmonic being regulated to form a qd feedback signal. The qd feedback signal is subtracted from the commanded value to form a qd signal and regulated. The regulated qd signal is transformed to a destination reference frame to form a compensation signal and the compensation signal is added to a control signal to form a qd control signal that drives each harmonic being regulated towards the commanded value.

CROSS-REFERENCE TO RELATED PATENT APPLICATIONS

This patent application is a continuation-in-part of co-pending U.S. patent application Ser. No. 11/552,333, filed on Oct. 24, 2006, the entire disclosure of which is hereby incorporated by reference.

BACKGROUND

There are many fields where operating a motor at a desired speed with little or no speed variation due to torque disturbance is required. For example, engine characterization requires operation at a selected speed. In a cold engine test system, an electronic motor drive is used to rotate an engine under test at a desired speed for purposes of, for example, engine design optimization, engine cylinder leakage characterization, etc. However, the engine under test exerts undesirable periodic torque disturbances on the motor shaft due to the engine cylinder compression/cam linkage interaction. The periodic torque disturbances are harmonically related to the rotational speed of the engine cam shaft and crank shaft and cause the actual engine speed to vary, which is not desirable for the characterization being done. Other areas that may produce periodic mechanical torque disturbances include rolling mills, rotary and reciprocal pumps, coilers and uncoilers, etc. Periodic torque disturbances may also occur due to the electrical distortion caused in power electronic driven motor drives resulting from, for example, the dead time between phase leg switching events.

Several techniques have been developed to reduce the effects of periodic torque disturbance. Raising the bandwidth of the drive speed loop can lower the resulting engine speed variation, but does not remove it entirely. Another technique adds a disturbance torque observer to the speed loop to decouple and minimize the speed variation. However, error of the acceleration estimate term of the observer often leads to non-ideal decoupling and speed variation.

Another technique is referred to in literature as a repetitive controller. This technique has several drawbacks. One drawback is that it does not learn or compensate for the phase of each harmonic of interest. The repetitive controller has infinite gain (i.e., integral action) at every multiple of the harmonic of interest and “learns” the magnitude. The same amplitude of correction is applied to the harmonic of interest and each of its multiples. In an actual system, each multiple of a harmonic may require a different amplitude for its compensation. In order for the repetitive controller to work properly, the compensation for harmonic multiples not of interest must be removed. One method is by performing a Fast Fourier Transform (FFT), removing the bins containing the multiples not of interest and performing an inverse FFT, which is a cumbersome process. Additionally, the repetitive controller in many instances becomes unstable, which results in online learning of harmonics being precluded.

Another application for harmonic regulation is one where the harmonic torque disturbance is deliberately introduced to the system. Such applications include, for example, test stands where the electric motor must simulate the torque pulsations inherent in an internal combustion engine for the purpose of testing transmissions, alternators, air conditioners, pumps and other equipment. The usual method has been to use a torque profile which is mapped to the position of the simulated engine crank. This method has the disadvantage of not having good control at higher frequencies as a result of the limited bandwidth of the basic control algorithm.

BRIEF SUMMARY

Described herein is, among other things, a harmonic disturbance regulator, which was conceived to minimize and/or eliminate the mentioned problems.

The harmonic regulator regulates to commanded values, including zero, a plurality of individual harmonics in a system having and/or requiring periodic disturbances. For each harmonic being regulated, a feedback signal representing the harmonic being regulated is transformed from a source reference frame to a harmonic reference frame of the harmonic being regulated to form a qd feedback signal. The qd feedback signal is subtracted from the commanded value for the harmonic to form a qd error signal and is regulated. The regulated qd signal is transformed to a destination reference frame to form a compensation signal and the compensation signal is added to a control signal to form a qd control signal that drives each harmonic being regulated towards its commanded value.

The angle used to transform the feedback signal to the harmonic reference frame is derived by multiplying the phase of the feedback signal in the source frame by the harmonic number of the harmonic being regulated and setting the harmonic angle to the modulo 2π value of the resulting value. Similarly, the angle used to transform the regulated signal to the destination reference frame is derived from the modulo 2π of the phase of the feedback signal multiplied by the harmonic number subtracted by a difference value equal to destination harmonic number minus the source harmonic number.

In one embodiment, the system has an engine that is rotated over a speed range and when the engine speed goes below a predetermined value, the PI regulator used to regulate the qd signal is latched by zeroing the error signal, thereby keeping and the q and d values of the qd signal at the values that they were at prior to the engine speed going below the predetermined value

Additional features and advantages will be made apparent from the following detailed description of illustrative embodiments, which proceeds with reference to the accompanying figures.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings incorporated in and forming a part of the specification illustrate several aspects of the harmonic regulator described herein, and together with the description serve to explain the principles of the harmonic regulator. In the drawings:

FIG. 1 is a block diagram of an exemplary operating environment in which the harmonic regulator may operate;

FIG. 2 is a block diagram view of an exemplary controller in which the harmonic regulator may be incorporated;

FIG. 3 is a block diagram of the harmonic regulator in which a plurality of individual harmonic regulators reside;

FIG. 4 is a block diagram of an individual harmonic regulator in accordance with the teachings herein;

FIG. 5 is a block diagram of an embodiment of the source to harmonic frame transformation block of FIG. 4;

FIG. 6 is a block diagram of an embodiment of the harmonic to selected destination frame transformation block of FIG. 4;

FIG. 7 is a flowchart illustrating the steps performed to regulate one or more harmonics;

FIG. 8 is a flowchart illustrating the steps performed in one embodiment to regulate one or more harmonics at low speeds;

FIGS. 9 a-9 e are simulated waveforms that illustrate an example of regulating a first harmonic in conjunction with a second harmonic;

FIGS. 10 a-10 e are expanded views of the waveforms of FIGS. 9 a-9 e;

FIGS. 11 a-11 e are simulated waveforms that illustrate an example of regulating a second harmonic in conjunction with the first harmonic of FIGS. 9 a-9 e;

FIGS. 12 a-12 e are expanded views of the waveforms of FIGS. 11 a-11 e;

FIG. 13 is an illustration showing the electrical torque estimate, the qds_(control) signal, the motor velocity, and a Fast Fourier Transform (FFT) of the motor velocity in an engine system operating at 300 rpm with the harmonic disturbance regulator disabled;

FIG. 14 is an illustration showing the electrical torque estimate, the qds_(control) signal, the motor velocity, and a FFT of the motor velocity in an engine system of FIG. 13 with the harmonic disturbance regulator enabled;

FIG. 15 is an illustration showing the electrical torque estimate, the electrical torque command, the motor velocity, and a FFT of the motor velocity in an engine system operating at 600 rpm with the harmonic disturbance regulator disabled;

FIG. 16 is an illustration showing the electrical torque estimate, the electrical torque command, the motor velocity, and a FFT of the motor velocity in an engine system of FIG. 15 with the harmonic disturbance regulator enabled;

FIG. 17 is a block diagram of an embodiment in which one or more harmonics of the DC bus current of the drive/controller of FIG. 1 is regulated;

FIG. 18 is a block diagram of a portion of a drive that illustrates where the DC bus current is being measured or estimated in the embodiment of FIG. 17;

FIGS. 19 a-19 h illustrate input voltage, input voltage harmonics, input current, input current harmonics, output voltage, output voltage harmonics, output current, and output current harmonics data taken at approximately 60 Hz, 150 Hp without the harmonic damping of FIG. 17 enabled;

FIGS. 20 a-20 h illustrate input voltage, input voltage harmonics, input current, input current harmonics, output voltage, output voltage harmonics, output current, and output current harmonics data taken at approximately 60 Hz, 150 Hp with the harmonic damping of FIG. 17 enabled and bus current estimated;

FIGS. 21 a-21 h illustrate input voltage, input voltage harmonics, input current, input current harmonics, output voltage, output voltage harmonics, output current, and output current harmonics data taken at approximately 60 Hz, 150 Hp with the harmonic damping of FIG. 17 enabled and bus current measured;

FIGS. 22 a-22 h illustrate input voltage, input voltage harmonics, input current, input current harmonics, output voltage, output voltage harmonics, output current, and output current harmonics data taken at approximately 60 Hz, 100 Hp with the harmonic damping of FIG. 17 enabled and bus current measured;

FIGS. 23 a-23 h illustrate input voltage, input voltage harmonics, input current, input current harmonics, output voltage, output voltage harmonics, output current, and output current harmonics data taken at approximately 60 Hz, 50 Hp with the harmonic damping of FIG. 17 enabled and bus current measured;

FIG. 24 illustrates an auto-transformer and input drive configuration in which the embodiment of FIG. 17 is used;

FIGS. 25 a and 25 b illustrate input current and input current harmonics data taken with an autotransformer connected to 250 Hp motor drives at an input current of approximately 150 amperes RMS;

FIGS. 26 a and 26 b illustrate input current and input current harmonics data of one of the drives taken with an autotransformer connected to 250 Hp motor drives at an input current of approximately 250 amperes RMS; and

FIGS. 27 a and 27 b illustrate total input current and total input current harmonics data at approximately the same power level of FIGS. 26 a and 26 b.

While the harmonic regulator will be described in connection with certain embodiments, there is no intent to limit it to those embodiments. On the contrary, the intent is to cover all alternatives, modifications and equivalents as included within the spirit and scope of the harmonic regulator as defined by the appended claims.

DETAILED DESCRIPTION

The harmonic regulator described herein regulates or eliminates harmonics that cause periodic torque disturbances. Referring initially to FIG. 1, an exemplary system 100 in which the present technology may operate is shown. The system includes a drive/controller 102 that receives three phase power at its input, converts it to a dc link, and controls motor 104 via power electronic switches (not shown). The motor 104 drives engine 106 through coupling 108. As previously described, the engine exerts a periodic torque disturbance on the motor shaft 110 due to cylinder compression/cam linkage interaction during rotation of the engine 106.

The drive/controller 102 can be of any form. The drive/controller 102 typically includes some form of computer readable media. Computer readable media can be any available media that can be accessed by the drive/controller 102 and can include both volatile and nonvolatile media, removable and non-removable media. For the description that follows, the drive/controller 102 shall be in the form of a qd type of controller where the main control loops are used in the qd reference frame, also known as the dq reference frame. Turning now to FIG. 2, the main control loop block 200 receives inputs such as commanded speed, motor speed, motor acceleration, etc. and outputs a qds control signal, where the qds control signal contains a quadrature axis control signal and a direct axis control signal. The qds control signal is transformed into an uvw control signal by qds to uvw block 202. The uvw control signal contains a control signals for each phase in the motor, which typically has three phases 120 degrees apart with respect to each other. The uvw control signal is used by uvw control block 204 to drive motor 104. Generally, the uvw control block 204 consists of an inverter that supplies power to each motor phase via pulse-width modulation (PWM) and/or the like.

The harmonic regulator 206 regulates one or more selected harmonics to specified values, which can be zero, by outputting a control signal that is added to the qds control signal when switch 208 is activated. While switch 208 is shown, in one embodiment the harmonic regulator 206 is directly connected to summer 210. The harmonic regulator 206 contains a plurality of individual harmonic regulators 300 n (see FIG. 3). The harmonic regulator 206 has an fqds input, an x input, and a dn input that are common to the plurality of individual harmonic regulators. The fqds input receives the vector feedback variable that is used in the main control loop and that has harmonic components due to the periodic torque disturbance. For example, in an application that controls mechanical torque disturbances (e.g., periodic torque disturbances), the fqds input could be motor acceleration, having, in the source frame, q axis magnitude only, or in an application for electrical voltage disturbance rejection (e.g., removing frequency dependent current harmonics due to inverter deadtime distortion), current feedback, potentially having both q and d axis magnitudes in the stationary reference frame. The x input is the angular position estimate of the fqds input upon which the harmonics are based and it sets the fundamental reference frame for the harmonics. The dn input is used as a “destination minus source” harmonic difference number for the output. For example a dn set to 1 when the source is the stationary frame sets the output to be in the first harmonic reference frame (i.e., synchronous fundamental reference frame) while a dn set to 0 sets the output to be in the stationary reference frame. The remaining multiple harmonic regulator inputs h₁ through h_(n) and fqdcmd₁ through fqdcmd_(n) are the harmonic numbers being regulated and the qd vector magnitude to which the harmonics are being controlled, respectively. A value of zero for the magnitude of these vectors causes the controller to regulate the associated harmonics to zero. The harmonics h₁ through h_(n) to be regulated may be determined by an understanding of the nature of the system being controlled or by analyzing the disturbance using a Fast Fourier Transform or by other experimental methods. The outputs of each of the individual harmonic regulators are summed at summing block 302 (FIG. 3) and the summed output, fqddncomp, is summed with the qds control signal at summer 210. In the case where the fqds signal has only q axis magnitude, only the q axis component of the output is summed and the d axis component is held to zero.

Turning now to FIG. 4 in conjunction with FIG. 7, an embodiment of the harmonic regulator 300 is illustrated. At blocks 400 to 402, the x input and harmonic number h being regulated are multiplied (block 400) and the modulo 2π is derived (block 402) to obtain the angle θ (theta) at which the harmonic being regulated is with respect to the stationary reference frame (step 700). The angle θ is used to derive the sine and cosine functions (block 404) used in the source to harmonic frame transformation block 406 (see FIG. 5) to transform the fqds vector feedback variables into the harmonic frame of harmonic number h (step 702). For example, if the fifth harmonic is being regulated in a harmonic regulator 300, the fqds feedback variable would be transformed into the harmonic frame of the fifth harmonic. The resulting qdh variables are low pass filtered via filter block 408 to reduce or eliminate other frequencies present in the qdh variables so that the harmonic regulator 300 primarily regulates the harmonic of interest (step 704). Alternatively, bandpass filters could be implemented in the source reference frame prior to transformation to the harmonic reference frame. The resulting filtered qdh values are subtracted from the commanded qd values at summer 410 (step 706). The resulting error is regulated with a qd PI regulator (block 412) (step 708) and transformed (block 414—see FIG. 6) to the reference frame selected via the dn input (step 710). The sine and cosine functions used in block 414 are derived from block 416, which has an input angle derived from the modulo 2, (block 418) of the x input multiplied (at block 420) by the harmonic number minus the dn input value. The fqddncomp value for the selected harmonic is summed with other values, if any, at summing block 302 (FIG. 3), resulting in the fqddncomp output value of harmonic regulator 206.

Note that at low engine speeds, harmonics can be difficult to discern due to the “crowding” of harmonics due to the low fundamental frequency of the system at low speed. In one embodiment, when the engine speed drops below a predetermined speed, the PI block is latched and the qd values are kept to their values that were at or above the predetermined speed (step 712—see FIG. 8). Tests have shown that regulating the harmonics with the latched value is better than if the harmonic disturbance regulator is completely disabled.

Turning now to FIGS. 9 a-12 e, a simulated example of regulating two harmonics is shown. FIGS. 10 a-10 e and FIGS. 12 a-12 e are expanded views of the waveforms of FIGS. 9 a-9 e and 11 a-11 e respectively. FIGS. 9 a and 11 a are the qd acceleration feedback signals that are quantized similar to how the signals would be when an incremental encoder is used and FIGS. 10 a and 12 a are expanded views of FIGS. 9 a and 11 a, respectively. FIGS. 9 b and 11 b are the transformed qd acceleration signals after being transformed into the harmonic reference frame of harmonic h1 and h2, respectively. FIGS. 10 b and 12 b are expanded views of FIGS. 9 b and 11 b, respectively. FIGS. 9 c and 11 c are the filtered and transformed qd acceleration signals. It can be seen how the filtered terms for both harmonics (i.e., the acceleration errors in this example) are forced to zero by the PI regulator outputs. FIGS. 10 c and 12 c are expanded views of FIGS. 9 c and 11 c, respectively. FIGS. 9 d and 11 d are the filtered and transformed qd acceleration signals after PI regulated. FIGS. 10 d and 12 d are expanded views of FIGS. 9 d and 11 d, respectively. It can be seen how each PI regulator output in the harmonic frame corresponds to a different magnitude and phase for each harmonic. FIGS. 9 e and 11 e are the PI regulated qd acceleration signals after being transformed back into the reference frame of FIGS. 9 a and 11 a. FIGS. 10 e and 12 e are expanded views of FIGS. 9 e and 11 e, respectively.

Turning now to FIGS. 13 and 14, an example of regulating the harmonics in a test system of a four cylinder, four cycle engine operating at 300 rpm is illustrated. Waveform 1300 is the electrical torque estimate, waveform 1302 is the qds_(control) signal (FIG. 2), waveform 1304 is the motor velocity, and waveform 1306 is a FFT of motor velocity. FIG. 13 illustrates the waveforms with the harmonic disturbance regulator disabled. Large peak values at several harmonics can clearly be seen in the FFT of the velocity. When the harmonic disturbance regulator is enabled with the regulation setpoint set to a value of zero for the 2^(nd), 4^(th), 6^(th), 8^(th), 12^(th) and 16^(th) harmonics, it can be seen in FIG. 14 that the regulated harmonics have been decoupled in the system and that the motor velocity has little, if any, ripple. As a result, the periodic torque disturbance effects have been reduced and/or eliminated.

FIGS. 15 and 16 provide an example of regulating harmonics in the same engine system operating at 600 rpm. Waveform 1500 is the electrical torque estimate, waveform 1502 is the qds_(control) signal (FIG. 2), waveform 1504 is the motor velocity, and waveform 1506 is a FFT of motor velocity. FIG. 15 illustrates the waveforms with the harmonic disturbance regulator disabled. Large peak values at several harmonics can clearly be seen in the FFT of the velocity. When the harmonic disturbance regulator is enabled with the regulation setpoint set to a value of zero for the 2^(nd), 4^(th), 8^(th) and 12^(th) harmonics being regulated, it can be seen in FIG. 16 that the regulated harmonics have been decoupled in the system and that the motor velocity has little, if any, ripple. As a result, the periodic torque disturbance effects have been reduced and/or eliminated.

Note that other forms of harmonics can also be regulated with the harmonic disturbance regulator. For example, voltage or current harmonics of a motor drive inverter dc bus and at the input and output connections of motor drive inverters can be reduced using the techniques described herein. Turning now to FIG. 17, an example of regulating dc bus current harmonics is illustrated. One or more harmonics can be targeted. The input to each harmonic regulator 300 is either measured bus in current or estimated bus in current (see FIG. 18). The angle input at which each harmonic being regulated is with respect to the stationary reference frame is generated via an integrator being reset based upon the power source (e.g., 50 or 60 Hz). For example, a sine wave representing the voltage of an input phase could be used with zero cross detection that is used to reset the integrator. The outputs of the harmonic regulators 300 are summed in summing block 302. The two dimensional vector output fqddncomp is input to the demultiplexor block 303, resulting in fqddncomp being separated into its component scalar values of fqdncomp and fddncomp. The fddncomp component output of demultiplexor block 303 is not used. The fqdncomp component output of the demultiplexor block 303 is added to the main control loop and commands V_(qse) synchronous frame voltage to the motor to accomplish the reduction in bus current harmonics. Typically, the 6th harmonic and harmonics that are multiples of 6 are regulated.

It is well known that a conventional motor drive with a six pulse diode rectifier front end deriving its power from a three-phase source without any significant input inductance has a total harmonic distortion (THD) of 31%. Turning now to FIGS. 19 a-23 h, test data of a 100 Hp, 460V Series 1200 Drive from Unico, assignee of this patent application, that has been modified with the harmonic damping techniques described herein are shown.

FIGS. 19 a-19 h illustrate data taken at approximately 60 Hz, 150 Hp without harmonic damping. In FIGS. 19 a-19 h, input voltage (FIG. 19 a), input voltage harmonics (FIG. 19 b), input current (FIG. 19 c), input current harmonics (FIG. 19 d), output voltage (FIG. 19 e), output voltage harmonics (FIG. 19 f), output current (FIG. 19 g), and output current harmonics (FIG. 19 h) are shown. Measurement at the inputs showed THD was 3.52% of the rms voltage and 36.46% of the rms current. Measurement at the outputs showed THD was 2.71% of the rms voltage and 3.29% of the rms current.

FIGS. 20 a-20 h illustrate data taken at approximately 60 Hz, 150 Hp with harmonic damping enabled and bus current being estimated. In FIGS. 20 a-20 h, input voltage (FIG. 20 a), input voltage harmonics (FIG. 20 b), input current (FIG. 20 c), input current harmonics (FIG. 20 d), output voltage (FIG. 20 e), output voltage harmonics (FIG. 20 f), output current (FIG. 20 g), and output current harmonics (FIG. 20 h) are shown. Measurement at the inputs showed THD was 4.70% of the rms voltage and 28.12% of the rms current. Measurement at the outputs showed THD was 3.39% of the rms voltage and 3.21% of the rms current.

FIGS. 21 a-21 h illustrate data taken at approximately 60 Hz, 150 Hp with harmonic damping and bus current being measured. In FIGS. 21 a-21 h, input voltage (FIG. 21 a), input voltage harmonics (FIG. 21 b), input current (FIG. 21 c), input current harmonics (FIG. 21 d), output voltage (FIG. 21 e), output voltage harmonics (FIG. 21 f), output current (FIG. 21 g), and output current harmonics (FIG. 21 h) are shown. Measurement at the inputs showed THD was 4.31% of the rms voltage and 23.23% of the rms current. Measurement at the outputs showed THD was 2.42% of the rms voltage and 2.90% of the rms current.

FIGS. 22 a-22 h illustrate data taken at approximately 60 Hz, 100 Hp with harmonic damping and bus current being measured. In FIGS. 22 a-22 h, input voltage (FIG. 22 a), input voltage harmonics (FIG. 22 b), input current (FIG. 22 c), input current harmonics (FIG. 22 d), output voltage (FIG. 22 e), output voltage harmonics (FIG. 22 f), output current (FIG. 22 g), and output current harmonics (FIG. 22 h) are shown. Measurement at the inputs showed THD was 3.84% of the rms voltage and of the 25.47% rms current. Measurement at the outputs showed THD was 2.04% of the rms voltage and 4.07% of the rms current.

FIGS. 23 a-23 h illustrate data taken at approximately 60 Hz, 50 Hp with harmonic damping and bus current being measured. In FIGS. 23 a-23 h, input voltage (FIG. 23 a), input voltage harmonics (FIG. 23 b), input current (FIG. 23 c), input current harmonics (FIG. 23 d), output voltage (FIG. 23 e), output voltage harmonics (FIG. 23 f), output current (FIG. 23 g), and output current harmonics (FIG. 23 h) are shown. Measurement at the inputs showed THD was 3.54% of the rms voltage and 29.94% of the rms current. Measurement at the outputs showed THD was 4.14% of the rms voltage and 9.35% of the rms current.

It can be seen that the current harmonics are reduced with the use of the harmonic damping with either the input bus current being measured or estimated. Harmonics could potentially be reduced even further using the invention in conjunction with other harmonic mitigation techniques such as, for example, using filters or using autotransformers such as those shown in U.S. Pat. Nos. 7,049,921 and 5,455,759 and in the article entitled “Cost effective Multi-Pulse Transformer Solutions for Harmonic Mitigation in AC Drives” by Gary L. Skibinski, all of which are hereby incorporated in their entireties.

For example, using a transformer such as that described in U.S. Pat. No. 7,049,921 in a drive configuration test (see FIG. 24) using two 250 Hp motor drives, the input current harmonic for one of the drives ranged from 12.17% THD at an input current of approximately 150 amperes RMS (see FIGS. 25 a and 25 b) to 8.73% THD at an input current of approximately 250 amperes RMS (see FIGS. 26 a and 26 b) at rated power. The total input current harmonic at rated power was 1.60% THD (see FIGS. 27 a and 27 b). The configuration for FIGS. 27 a and 27 b was a pseudo 24 pulse configuration with two 12 pulse drives and the embodiment of FIG. 17. The two 12 pulse auto transformers were hooked up as shown in FIG. 24 but without the output chokes between the drive rectifiers and the auto transformers. A three phase choke on the combined input (3-5% impedance) was added.

From the foregoing, it can be seen that periodic torque disturbances can be regulated with the harmonic disturbance regulator described herein. The transformation into the harmonic reference frame allows a controller to effectively operate on dc rather than time variant signals. This isolates the controller from time variant waveforms and therefore minimizes the limitation of controller frequency response and phase shift on torque and speed.

The use of the terms “a” and “an” and “the” and similar referents in the context of describing the invention (especially in the context of the following claims) are to be construed to cover both the singular and the plural, unless otherwise indicated herein or clearly contradicted by context. The terms “comprising,” “having,” “including,” and “containing” are to be construed as open-ended terms (i.e., meaning “including, but not limited to,”) unless otherwise noted. Recitation of ranges of values herein are merely intended to serve as a shorthand method of referring individually to each separate value falling within the range, unless otherwise indicated herein, and each separate value is incorporated into the specification as if it were individually recited herein. All methods described herein can be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The use of any and all examples, or exemplary language (e.g., “such as”) provided herein, is intended merely to better illuminate the invention and does not pose a limitation on the scope of the invention unless otherwise claimed. No language in the specification should be construed as indicating any non-claimed element as essential to the practice of the invention.

Preferred embodiments of this invention are described herein, including the best mode known to the inventor for carrying out the invention. Variations of those preferred embodiments may become apparent to those of ordinary skill in the art upon reading the foregoing description. The inventor expects skilled artisans to employ such variations as appropriate, and the inventor intends for the invention to be practiced otherwise than as specifically described herein. Accordingly, this invention includes all modifications and equivalents of the subject matter recited in the claims appended hereto as permitted by applicable law. Moreover, any combination of the above-described elements in all possible variations thereof is encompassed by the invention unless otherwise indicated herein or otherwise clearly contradicted by context. 

1. A method to regulate bus harmonics in a motor drive system connected to a power source, the method comprising the steps of: for each harmonic being regulated: transforming a bus feedback signal having at least one harmonic component due to the harmonic being regulated from a source reference frame to a harmonic reference frame of the harmonic being regulated to form a qd feedback signal, wherein the step of transforming the feedback signal includes the step of determining a harmonic angle of the harmonic being regulated, wherein the step of determining the harmonic angle comprises the steps of: resetting an output of an integrator upon detection of a zero crossing of a sine wave having the same frequency as the frequency of the power source; and setting the harmonic angle to the output of the integrator times the harmonic number of the harmonic being regulated; subtracting the qd feedback signal from a commanded value to form a qd signal; regulating the qd signal; transforming the regulated qd signal to a destination reference frame to form a compensation signal; and adding the compensation signal to a control signal to form a qd control signal to drive the harmonic being regulated towards the commanded value.
 2. The method of claim 1 further comprising the step of filtering the qd feedback signal.
 3. The method of claim 2 wherein the step of filtering the qd feedback signal comprises the step of filtering the feedback signal in the harmonic reference frame.
 4. The method of claim 2 wherein the step of filtering the qd feedback signal comprises the step of filtering the qd feedback signal with a low pass filter.
 5. The method of claim 1 wherein the step of adding the compensation signal to a control signal to form a qd control signal comprises the step of adding the compensation signal to a V_(qse) synchronous frame voltage command in the motor drive system.
 6. The method of claim 1 wherein the step of transforming the regulated qd signal to a destination reference frame comprises the step of transforming the regulated qd signal to the destination reference frame based upon a destination harmonic number.
 7. The method of claim 1 wherein the step of transforming a bus feedback signal comprises the step of transforming a bus current feedback signal.
 8. A computer-readable medium having computer executable instructions, that when executed, perform the steps of claim 1, including that when executed, perform the step comprising determining a harmonic angle of the harmonic being regulated, wherein the step of determining the harmonic angle comprises the steps of: resetting an output of an integrator upon detection of a zero crossing of a sine wave having the same frequency as the frequency of the power source; and setting the harmonic angle to the output of the integrator times the harmonic number of the harmonic being regulated.
 9. The computer-readable medium of claim 8 having further executable instructions, that when executed, perform the step of filtering the qd feedback signal.
 10. The computer-readable medium of claim 9 wherein the step of filtering the qd feedback signal comprises the step of filtering the feedback signal in the harmonic reference frame.
 11. The computer-readable medium of claim 9 wherein the step of filtering the qd feedback signal comprises the step of filtering the qd feedback signal with a low pass filter.
 12. The computer-readable medium of claim 8 wherein the step of adding the compensation signal to a control signal to form a qd control signal comprises the step of adding the compensation signal to a V_(qse) synchronous frame voltage command in the motor drive system.
 13. The computer-readable medium of claim 8 wherein the step of transforming the regulated qd signal to a destination reference frame comprises the step of transforming the regulated qd signal to the destination reference frame based upon a destination harmonic number.
 14. The computer-readable medium of claim 8 wherein the step of transforming a bus feedback signal comprises the step of transforming a bus current feedback signal. 